<template>
  <div>
    <My-Header/>
    <hr />
    <h2>这个count每次加2</h2>
    <My-Count :num='2'/>  
    <!-- 这里传的是字符串2,前面加上:就是js环境了,2才是数字 -->
    <hr/>
    <h2>这个count每次加3</h2>
    <My-Count :num='3'/>
  </div>
</template>

<script>
import MyHeader from "./components/MyHeader";
import MyCount from './components/MyCount'

export default {
  name: "App",
  // 注册
  components: {
    MyHeader,
    MyCount
  }
};
</script>

<style scoped>
</style>